package com.gxa.meiye.admin.shop.service.impl;


import com.gxa.meiye.admin.shop.mapper.ShopRegisterAndLoginMapper;
import com.gxa.meiye.admin.shop.service.LoginService;
import com.gxa.meiye.core.common.ResponseData;
import com.gxa.meiye.core.pojo.shopManagement.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author cc
 * @PackageName meiye
 * @Package com.gxa.portal.shop.shopLogin.service.impl
 * @Date 2022/7/22 14:45
 * @Version 1.0
 */
@Service
public class LoginServiceImpl implements LoginService {
@Autowired
private ShopRegisterAndLoginMapper shopRegisterAndLoginMapper;
    @Override
    public Shop queryBuyEmailAndPwd(String email, String pwd) {

        Shop shop = shopRegisterAndLoginMapper.selectByEmailAndPwd(email, pwd);

        return shop;
    }
}
